<div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->
			
			<h1 id="sidebar-title"><a href="#">Simpla Admin</a></h1>
		  
			<!-- Logo (221px wide) -->
			<a href="#"><img id="logo" style="padding-left:40px" src="../skins/sa/resources/images/logo.png" alt="Simpla Admin logo" /></a>
		  
			<!-- Sidebar Profile links -->
			<div id="profile-links">
				Hello, <a href="#" title="Edit your profile"><?php echo $_SESSION['USER']['ho_ten']?></a>, you have <a href="#messages" rel="modal" title="3 Messages">3 Messages</a><br />
				<br />
				<a href="#" title="View the Site">View the Site</a> | <a href="../quan_tri/dang_xuat.php" title="Sign Out">Sign Out</a>
			</div>        
			
			<ul id="main-nav">  <!-- Accordion Menu -->
                
                <li> 
					<a href="#" class="nav-top-item" id="thong_ke"> <!-- Add the class "current" to current menu item -->
					Thống kê
					</a>
					<ul>
						
						<li><a href="../trang_chu/index.php" id="trang_chu_index.php" parent="thong_ke">Thống kê doanh thu</a></li> <!-- Add class "current" to sub menu items also -->
                        
					</ul>
				</li>
				
				<li> 
					<a href="#" class="nav-top-item" id="bai_viet"> <!-- Add the class "current" to current menu item -->
					Bài viết
					</a>
					<ul>
						<li><a href="../bai_viet/them.php" id="bai_viet_them.php" parent="bai_viet">Thêm bài viết</a></li>
						<li><a href="../bai_viet/danh_sach.php" id="bai_viet_danh_sach.php" parent="bai_viet">Xem danh sách bài viết</a></li> <!-- Add class "current" to sub menu items also -->
                        <li><a href="../loai_bai_viet/them.php" id="loai_bai_viet_them.php" parent="bai_viet">Thêm loại bài viết</a></li>
						<li><a href="../loai_bai_viet/danh_sach.php" id="loai_bai_viet_danh_sach.php" parent="bai_viet">Xem danh sách loại bài viết</a></li>
					</ul>
				</li>


				<li>
					<a href="#" class="nav-top-item" id="quan_ly_don_hang">
						Quản lý phiếu đăng ký
					</a>
					<ul>
						<li><a href="../phieu_dang_ky/danh_sach.php" id="don_hang_danh_sach.php" parent="quan_ly_don_hang">Xem danh sách</a></li>
					</ul>
				</li>


                <li>
					<a href="#" class="nav-top-item" id="thanh_vien">
						Thành viên
					</a>
					<ul>
						<li><a href="../thanh_vien/them.php" id="thanh_vien_them.php" parent="thanh_vien">Thêm</a></li>
						<li><a href="../thanh_vien/danh_sach.php" id="thanh_vien_danh_sach.php" parent="thanh_vien">Xem danh sách</a></li>
					</ul>
				</li>
                
                <li>
					<a href="#" class="nav-top-item" id="tuyen_dung">
						Tuyển dụng
					</a>
					<ul>
						<li><a href="../tuyen_dung/thong_tin.php" id="tuyen_dung_thong_tin.php" parent="tuyen_dung">Thông tin</a></li>
						<li><a href="../tuyen_dung/danh_sach.php" id="tuyen_dung_danh_sach.php" parent="tuyen_dung">Xem danh sách</a></li>
					</ul>
				</li>


                
                 <li>
					<a href="#" class="nav-top-item" id="cau_hinh_web">
						Cấu hình website
					</a>
					<ul>
						<li><a href="../cau_hinh/them.php" id="cau_hinh_them.php" parent="cau_hinh_web">Thêm</a></li>
						<li><a href="../cau_hinh/danh_sach.php" id="cau_hinh_danh_sach.php" parent="cau_hinh_web">Xem danh sách</a></li>
					</ul>
				</li>
                
                 <li>
					<a href="#" class="nav-top-item" id="lien_he">
						Liên hệ
					</a>
					<ul>
						<li><a href="../lien_he/thong_tin.php" id="lien_he_thong_tin.php" parent="lien_he">Thông tin</a></li>
						<li><a href="../lien_he/danh_sach.php" id="lien_he_danh_sach.php" parent="lien_he">Xem danh sách</a></li>
					</ul>
				</li>
                
                
				
			</ul> <!-- End #main-nav -->
			
			<div id="messages" style="display: none"> <!-- Messages are shown when a link with these attributes are clicked: href="#messages" rel="modal"  -->
				
				<h3>3 Messages</h3>
			 
				<p>
					<strong>17th May 2009</strong> by Admin<br />
					Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue.
					<small><a href="#" class="remove-link" title="Remove message">Remove</a></small>
				</p>
			 
				<p>
					<strong>2nd May 2009</strong> by Jane Doe<br />
					Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.
					<small><a href="#" class="remove-link" title="Remove message">Remove</a></small>
				</p>
			 
				<p>
					<strong>25th April 2009</strong> by Admin<br />
					Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue.
					<small><a href="#" class="remove-link" title="Remove message">Remove</a></small>
				</p>
				
				<form action="" method="post">
				
					<h4>New Message</h4>
					
					<fieldset>
						<textarea class="textarea" name="textfield" cols="79" rows="5"></textarea>
					</fieldset>
					
					<fieldset>
					
						<select name="dropdown" class="small-input">
							<option value="option1">Send to...</option>
							<option value="option2">Everyone</option>
							<option value="option3">Admin</option>
							<option value="option4">Jane Doe</option>
						</select>
						
						<input class="button" type="submit" value="Send" />
						
					</fieldset>
					
				</form>
				
			</div> <!-- End #messages -->
			
		</div></div>
        
<script type="text/javascript">
	var url = window.location.href;
	var arr_url = url.split('/');
	var n = arr_url.length;
	var file = arr_url[n-1];
	var folder = arr_url[n-2];
	var id = folder + '_' + file;
	var id_parent = document.getElementById(id).getAttribute('parent');

	document.getElementById(id_parent).className = 'nav-top-item current';
	document.getElementById(id).className = 'current';
	
	
</script>